import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
  list = '/crm/cProjectApplication/listSimple',
}



/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list, params });



export const getContractById = (params) => defHttp.get({ url: '/crm/cContract/queryById', params });


/**
 * 修改置顶
 * @param params
 */


export const getToggleFavorite = (params,handleSuccess) => {
  return defHttp.post({url: '/crm/cProjectApplication/toggleFavorite', params}).then(() => {
    handleSuccess();
  });
}

export const getOrderInfo = (params) => defHttp.get({ url: '/crm/cProjectApplication/getOrderInfoSimple', params });
